{include file="public/header" /}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.css"}
{load href="__PLUGINS__bootstrap/bootstrap-table.min.js"}
<style>
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0;
        margin-top: 0
    }

    #title span {
        float: right;
    }

    .asdlkjasd {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content {:config('adminClass.main')}">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">

            {include file="public/topsection"}

            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="example">
                        <form class="form-horizontal" method="post">
                            <table data-toggle="table">
                                <thead>
                                <tr>
                                    <th data-align="center">资料</th>
                                    <th data-align="center">个性签名</th>
                                    <th data-align="center">自我介绍</th>
                                    <th data-align="center">操作</th>
                                </tr>
                                </thead>
                                <tbody id="form">
                                {php}$hide=array('0'=>'<font color="#1ab394">正常</font>','1'=>'<font
                                        color="#f00">冻结</font>');{/php}
                                {volist name="data" id="v"}
                                <tr id="id{$v.id}" class="class">
                                    <td>(ID){$v.id}<br />(昵称){$v.name}<br />(手机号){$v.phone}</td>
                                    <td>
                                        {$v.slogan}
                                    </td>
                                    <td>
                                        {$v.self_slogan}
                                    </td>
                                    <td>
                                            <div onClick="clearSlogan('{$v['id']}', 0)" class="btn btn-primary btn-xs dropdown-toggle">
                                                清空签名
                                            </div>
                                            <div onClick="clearSlogan('{$v['id']}', 1)" class="btn btn-warning btn-xs dropdown-toggle">
                                                清空介绍
                                            </div>
                                            <div onClick="clearSlogan('{$v['id']}', 2)" class="btn btn-danger btn-xs dropdown-toggle">
                                                全部清空
                                            </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page}</div>
            </div>
        </div>
    </div>
</div>

{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}

<script type="text/javascript">
    function clearSlogan(id, key) {
        $.ajax({
            type: 'post',
            url: '{:url("clearSlogan")}',
            data: {id:id,key:key},
            dataType: 'json',
            success:function(ret){
                if (ret.ret) {
                    layer.msg('设置成功')
                    window.location.reload()
                } else {
                    layer.msg(ret.err);
                }

            },
            error:function(err){
                layer.msg(err)
            }
        });
    }


</script>
 